package com.imooc.security.demo.other;

import org.springframework.stereotype.Component;
import org.springframework.web.context.request.async.DeferredResult;

import java.util.HashMap;
import java.util.Map;

/**
 * 用于线程1和线程2之间进行数据的交互，主要就是对创建的副线程的操作
 * @author JackYang
 * @description:
 * @create: 2020/6/14 13:33
 */
@Component
public class DeferredResultHolder {
    private Map<String, DeferredResult<String>> map= new HashMap<>();
    
    public Map<String, DeferredResult<String>> getMap() {
        return map;
    }
    
    public void setMap(Map<String, DeferredResult<String>> map) {
        this.map = map;
    }
}
